<%@ include file="/common/taglibs.jsp"%>

<head>
    <title><fmt:message key="feedBackDetail.title"/></title>
    <meta name="heading" content="<fmt:message key='feedBackDetail.heading'/>"/>
</head>

<c:set var="buttons">
    <input type="button" onclick="location.href='javascript:history.go(-1);'"
        value="<fmt:message key="button.done"/>"/>
</c:set>

<c:out value="${buttons}" escapeXml="false"/>
    <table align="center" style="text-align: left; width: 100%;" border="1" cellpadding="0" cellspacing="0">
      <tbody>
	        <tr>
	          <td width="20%"><fmt:message key="user.name"/></td>
	          <td><c:out value="${user.name}"/></td>
	        </tr>
	        <tr>
	          <td width="20%"><fmt:message key="user.username"/></td>
	          <td><c:out value="${user.username}"/></td>
	        </tr>
	        <tr>
	          <td width="20%"><fmt:message key="therapy.tdate"/></td>
	          <td><c:out value="${therapy.dateStr}"/></td>
	        </tr>
	        <tr>
	          <td><fmt:message key="therapy.synptom"/></td>
	          <td><c:out value="${therapy.synptom}"/></td>
	        </tr>
	        <tr>
	          <td><fmt:message key="therapy.tonguepulse"/></td>
	          <td><c:out value="${therapy.tonguepulse}"/></td>
	        </tr>
	        <tr>
	          <td><fmt:message key="therapy.formula"/></td>
	          <td><c:out value="${therapy.formulaStr}" escapeXml="false"/></td>
	        </tr>
	        <tr>
	          <td><fmt:message key="feedBackDetail.heading"/></td>
	          <td>
	          <c:forEach var="feedback" items="${feedbackList}" >
		          <c:out value="${feedback.dateStr}"/>
	 	          <c:choose>
		       		<c:when test="${feedback.isGood}">
		    			<img src="<c:url value="/images/good.gif"/>" class="icon"/>
		    		</c:when>
		    		<c:otherwise>
		    			<img src="<c:url value="/images/bad.gif"/>" class="icon"/>
		    		</c:otherwise>
	    		  </c:choose>
		          <c:out value="${feedback.contentStr}" escapeXml="false"/>
		          <br>
	          </c:forEach></td>
	        </tr>
      </tbody>
    </table>

